<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="axios-0.18.0.js"></script>
</head>
<body>
<input type="button" value="Get Data" onclick="getData()">
</body>
<script>
    function getData() {
        axios({
            method: "GET",
            url : "http://localhost:8080/ajax_text"
            }).then(function (response) {
            console.log(response.data);
        }).catch(function (error) {
            console.log(error);
        });
    }

</script>
</html>